package org.jeecg.gen.javaToSql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 产品
 * @Author: jeecg-boot
 * @Date: 2019-09-05
 * @Version: V1.0
 */
@Data
@TableName("base")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "base对象", description = "基础对象")
public class Base {


    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "基础表")
    private String id; //id'
    /**
     * 创建人登录名称
     */
    @ApiModelProperty(value = "创建人登录名称")
    private String createBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人登录名称
     */

    @ApiModelProperty(value = "更新人登录名称")
    private String updateBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "删除标识（0默认1删除）")
    private java.lang.Integer deleted;

//    private String dataTable; //表名
//    private String dataId; //数据ID
//    private String dataContent; //数据内容
//    private String dataVersion; //版本号

}
